Skip to content

Conversation

@jadepark-dev
Copy link
Contributor

@jadepark-dev jadepark-dev commented Jul 15, 2025

This PR updates TON blockchain support to enable TVM version configuration and adds custom environment variable support

Primary Changes

  • Added custom_env field to blockchain input configuration for setting custom container environment variables
  • Updated TON genesis container to support configurable VERSION_CAPABILITIES parameter
  • Implemented environment variable merging to allow overriding default genesis container settings

Others

  • Enhanced documentation with genesis container parameter configuration examples
  • Updated example configuration to demonstrate custom environment usage
  • Refactored environment variable handling to use base configuration with override capability

Below is a summarization created by an LLM (gpt-4-0125-preview). Be mindful of hallucinations and verify accuracy.

Why

The changes introduce support for custom environment variables in the TON blockchain configuration. This allows users to customize the behavior of the TON blockchain by overriding default genesis container environment variables.

What

  • book/src/framework/components/blockchains/ton.md
    • Added a new section "Genesis Container Parameters" explaining how to use custom_env to pass custom environment variables for TON blockchain behavior customization.
  • framework/components/blockchain/blockchain.go
    • Added a CustomEnv field to the Input struct to support custom environment variables for the blockchain container.
  • framework/components/blockchain/ton.go
    • Integrated custom environment variables into the genesis container setup by merging CustomEnv from the input with the base environment variables.
  • framework/examples/myproject/smoke_ton.toml
    • Demonstrated the usage of custom_env in a TON configuration example with a custom environment variable VERSION_CAPABILITIES.

@jadepark-dev jadepark-dev marked this pull request as ready for review July 15, 2025 10:49
@jadepark-dev jadepark-dev requested a review from a team as a code owner July 15, 2025 10:49
@jadepark-dev jadepark-dev requested review from archseer and skudasov and removed request for skudasov July 15, 2025 10:49
@jadepark-dev jadepark-dev merged commit ace64fd into main Jul 15, 2025
64 checks passed
@jadepark-dev jadepark-dev deleted the jade/ton-tvm-upgrade branch July 15, 2025 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants